﻿using Super.Admin.Entities;

namespace Super.Admin.IServices
{
    /// <summary>
    /// 部门管理接口服务类
    /// </summary>
    public interface IDepartmentService : IBaseService
    {
        /// <summary>
        /// 获取所有部门
        /// </summary>
        /// <returns>部门集合集合</returns>
        IReadOnlyCollection<DepartmentEntity> GetDepartments();
        /// <summary>
        /// 创建部门
        /// </summary>
        /// <param name="department">需要创建的部门</param>
        void CreateDepartment(DepartmentEntity department);
        /// <summary>
        /// 修改部门
        /// </summary>
        /// <param name="department">需要修改的部门</param>
        void UpdateDepartment(DepartmentEntity department);
        /// <summary>
        /// 删除部门
        /// </summary>
        /// <param name="departmentId">需要删除的部门Id</param>
        void DeleteDepartment(int departmentId);
    }
}
